package edu.gyc.hisecurity.controller;

import edu.gyc.hisecurity.service.GirlService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController

public class GirlController {

    @GetMapping("/hello")
    public String hello() {
        return "Hi spring securtiy！";
    }

    @GetMapping("/girl/qipao")
    public String qipao() {
        return "Hi 旗袍美女！";
    }

    @GetMapping("/lover/siwa")
    public String siwa() {
        return "Hi 丝袜美女！";
    }

    @GetMapping("/login")
    public String login() {
        return "Please login";
    }

    @Autowired
    GirlService girlService;

    @GetMapping("/admin")
    public String sex() {
        return  girlService.admin();
    }
    @GetMapping("/lover")
    public String sex1() {
        return  girlService.lover();
    }
    @GetMapping("/love")
    public String sex2() {
        return  girlService.love();
    }
}
